package com.lan.utils.tree;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  树形节点
 * </p>
 *
 * @author shadow
 * @since 2022-09-26
 */
@Data
@Accessors(chain = true)
public class TreeNode<T> implements Serializable {

    private static final long serialVersionUID = 123456789L;

    private String title;

    private String id;

    private String field;

    private String parentId;

//    private T data;

    private boolean checked = false;

    private boolean spread = false;

    private List<TreeNode<T>> children = new ArrayList<>();

}
